<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户登录</title>
    <style type="text/css">
        #error,#notLogin{
            color: red;
        }

    </style>
</head>
<body>
<h1>登录界面</h1>

<form method="post" action="login">
    用户名：<input type="text" name="username" value="${user.userName}">
    密码：<input type="password" name="password" value="${user.password}">
    <input type="submit" value="登录"><button><a href="register.jsp">注册</a></button>
    <p id="error" >${error}</p>
    <p id="notLogin" >${notLogin}</p>
</form>
</body>
</html>
